class DailyTypesController < ManaController
  def new
      @daily_type = DailyType.new
      render :action => 'edit'
  end

  def edit
     @daily_type = DailyType.find params[:id]
  end

  def show
    redirect_to :action => :index
  end

  def index
      @daily_types = DailyType.all
  end

  def create
      daily_type = DailyType.new
      daily_type.update_attributes params[:daily_type]
      redirect_to :action => :index
  end

  def update
      daily_type = DailyType.find_by_id params[:id]
      daily_type.update_attributes params[:daily_type]
      redirect_to :action => :index
  end

  def destroy
      App.destroy params[:id]
      redirect_to :action => :index
  end

end
